using System;
using System.Windows;
using WPFPractice.Utils;
using WPFPractice.ViewModels;

namespace WPFPractice.Windows
{
	/// <summary>
	/// WinHandy.xaml 的交互逻辑
	/// </summary>
	public partial class WinHandy : Window
	{
		public WinHandy()
		{
			InitializeComponent();
			DataContext = new HandyViewModel();
		}
	}
}

namespace WPFPractice.ViewModels
{
	public class HandyViewModel : MyViewModelBase
	{
		#region 方法

		/// <inheritdoc />
		protected override void InitDataAfterConstruction()
		{
			Console.WriteLine("演示 HandyControl 控件和样式");
		}

		#endregion
	}
}
